package com.by.controller;

import com.by.bean.User;
import com.by.remote.UserRemoteClient;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * description:
 * author:zcx
 * lenovo
 * 时间：2022.06.09.09.53
 */
@RestController
public class UserController implements UserRemoteClient {
    @Override
    public Map queryUser(String id) {
        Map map=new HashMap();
        map.put("id",id);
        map.put("username","main");
        return map;
    }

    @Override
    public void login(@RequestParam("username") String username,@RequestParam("password") String password) {
        System.out.println(username);
        System.out.println(password);
    }

    @Override
    public void testGetMap(Map map) {
        System.out.println(map);
    }

    @Override
    public void testPostMap(Map map) {
        System.out.println(map);
    }

    @Override
    public void testPosrUser(User user) {
        System.out.println(user);
    }

    @Override
    public void testSpringquerymap(Map map) {
        System.out.println(map);
    }

    @Override
    public void testSpringqueryuser(User user) {
        System.out.println(user);
    }
}
